package com.sqber.nacos.nacosSpringBootDemo;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.sqber.nacos.nacosSpringBootDemo.conststr.NacosConst;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@NacosPropertySource(dataId = NacosConst.DATA_ID, groupId = NacosConst.GROUP_ID, autoRefreshed = true, type = ConfigType.PROPERTIES)
public class NacosSpringBootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosSpringBootDemoApplication.class, args);
    }

}
